package com.gaohe.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
//@TableName("tb_user")
public class User {
//    @TableId(type = IdType.ASSIGN_UUID)
    private Long id;
    private String name;
    @TableField(value = "password")
    private String pass;
    private Integer age;
    private String tel;
    @TableField(exist = false)
    private boolean remember;
    //自定义结果集  字段名 属性名 映射问题
    // class_name  className
    private String className;
    //逻辑删除字段
    @TableLogic
    private Integer deleted;
    @Version
    private Integer version;
}
